CMAKE_MINIMUM_REQUIRED (VERSION 2.8)

PROJECT (XyNet)

if (CMAKE_VERSION VERSION_LESS "3.1")
	if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
		set (CMAKE_CXX_FLAGS "--std=gnu++11 ${CMAKE_CXX_FLAGS}")
	endif ()
else ()
	set (CMAKE_CXX_STANDARD 11)
endif ()

SET (BASE_PATH "../../../")
SET (INCLUDE_PATH "${BASE_PATH}include/")
SET (SRC_PATH "${BASE_PATH}src/")
SET (LIB_PATH "${BASE_PATH}lib/")
SET (BIN_PATH "${BASE_PATH}bin/")
SET (DEP_PATH "${BASE_PATH}XyNetDependencies/")

FILE (COPY "../../src/" DESTINATION "../../include/" FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp")

SET (LIBRARY_OUTPUT_PATH ${LIB_PATH}${CMAKE_SYSTEM_NAME})
MESSAGE (${LIBRARY_OUTPUT_PATH})
SET (EXECUTABLE_OUTPUT_PATH ${BIN_PATH}${CMAKE_SYSTEM_NAME})
MESSAGE (${EXECUTABLE_OUTPUT_PATH})

ADD_SUBDIRECTORY (XyNet)